package com.mall.service;

import com.mall.common.ServerResponse;
import com.mall.pojo.User;

/**
 * Created by xiaoyao on 2017/8/14.
 */
public interface IUserService {
    ServerResponse<User> login(User user);
    ServerResponse<String> register(User user);
    ServerResponse<String> checkValid(String type, String str);
    ServerResponse<String> checkUserQuestion(String username);
    ServerResponse<String> checkAnswer(String username,String question,String answer);
    ServerResponse<String> forgetResetPassword(String username,String passwordNew,String forgetToken);
    ServerResponse<String> resetPassword(User user,String passwordOld,String passwordNew);
    ServerResponse<User> getInformation(Integer userId);
    ServerResponse<User> updateInformation(User user);
    ServerResponse checkAdminRole(User user);
}
